﻿@model Csharp_manytomany_415.Models.MovieDetailsVm

<div>
    <h4>Movie</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.MovieTitle)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.MovieTitle)
        </dd>

    </dl>
</div>
<hr />
<div>
    <h4>Actors</h4> 
    <hr />
    <dl class="dl-horizontal">
        @foreach (var obj in Model.AllActors)
        {
            <dt>Actor</dt>
            <dd>@obj.FirstName @obj.LastName</dd>
        }
    </dl>
</div>
<p>
    @Html.ActionLink("Back to List", "Index")
</p>
